# -*- coding:utf-8 -*-
# @FileName  :system_org.py
# @Time      :2020/11/27 16:06
# @Author    :Zhoujirong
# @Desc      :
import parameterized
from common.log import Log
from biz.flow.org import OrgRequest
from biz.cases.base_case import BaseCase
from common.params_operator import Param
from common.utils import get_redis,get_mysql

class TestOrg(BaseCase):
    '''角色接口测试用例'''

    data_file_name = 'org_data.yaml'

    @classmethod
    def setUpClass(cls):
        cls.redis = get_redis()
        # cls.mysql = get_mysql()
        cls.cookie = BaseCase().get_token()

    def test_org_create(self):
        orgName = self.file_data.get('orgName')
        orgId = self.file_data.get('orgId')
        recordStopFlag = self.file_data.get('recordStopFlag')
        corporateFlag = self.file_data.get('corporateFlag')
        uporg = self.file_data.get('uporg')
        postCode = self.file_data.get('postCode')
        linkMan = self.file_data.get('linkMan')
        linkMode = self.file_data.get('linkMode')
        otherLinkMode = self.file_data.get('otherLinkMode')
        address = self.file_data.get('address')
        areaCode = self.file_data.get('areaCode')
        getSystemId = self.file_data.get('getSystemId')
        remark = self.file_data.get('remark')
        ret = OrgRequest.org_create(orgName,orgId,recordStopFlag,corporateFlag,uporg,postCode,
                   linkMan,otherLinkMode,linkMode,address,areaCode,getSystemId,remark,self.cookie)
        Log.info(ret)
        self.assertEqual('00000000',ret.code)




if __name__ == "__main__":
    pass